﻿

using Asxsyd92Core.Utils.Provider;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System.IO;

namespace WebOSCore
{
    public class Program
    {
        public static void Main(string[] args)
        {
       
                CreateHostBuilder(args).Build().Run();
       
      
        }

        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureWebHostDefaults(webBuilder =>
                {
                    //配置启动端口
                    webBuilder.UseUrls(AppSetting.GetConfig("urls"))
                    .UseStartup<Startup>(); //添加;
                });



    }
}
